package com.jenings.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jenings.shop.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    //评论接口
    //查询全部评论
    public List<Comment> selectAll();
    //查询部分评论，模糊查询
    public List<Comment> selectSome(String plname);
    //查询指定评论
    public Comment selectByte(String plname);
    //添加评论
    public boolean addByte(Comment comment);
    //删除评论
    public boolean delByte(Integer plid);
}
